package com.neouton.crm.sales.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neouton.crm.sales.entity.SalesFollowRecordVO;
import com.neouton.crm.sales.entity.SalesStageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 巾凡
* @description 针对表【sales_stage(阶段表)】的数据库操作Mapper
* @createDate 2022-11-09 09:34:55
* @Entity com.neouton.crm.sales.entity.SalesStage
*/
@Mapper
public interface SalesStageMapper extends BaseMapper<SalesStageVO> {

    /**
     * 查询阶段信息
     */
    List<SalesStageVO> queryStageInfo(@Param("salesRelationId") Integer salesRelationId, @Param("stageClass") Integer stageClass);

    int deleteByPrimaryKey(Long id);

    int insert(SalesStageVO record);

    int insertSelective(SalesStageVO record);

    SalesStageVO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SalesStageVO record);

    int updateByPrimaryKey(SalesStageVO record);
}
